﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class Containers
    {
    public static void displayDictionary<T, U>(Dictionary<T, U> dictionary)
        {
        List<T> listKeys = dictionary.Keys.ToList();
        foreach (var key in listKeys)
            {
            System.Console.WriteLine(key + " = " + dictionary[key]);
            }
        }

    public static bool isAllKeysInList<T, U>(Dictionary<T, U> dictionary, List<T> list)
        {
        List<T> listKeys = dictionary.Keys.ToList();
        foreach (var key in listKeys)
            {
            if (!list.Contains(key))
                {
                return false;
                }
            }
        return true;
        }
    }
    
